package com.hockeo.tinygds.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Specifies the name to be used for a field when it is persisted to the Google datastore.
 * If no {@link TName} is defined on a persistent entity field, the field's name is used
 * as the name of the datastore property.
 *
 * @version $Id$
 * @author jjanke
 */
@Retention( RetentionPolicy.RUNTIME )
@Target( { ElementType.FIELD } )
public @interface TName
{
  String value();
}
